<gm:page title="MyBlog" authenticate="true">
title:<input type="text" id="txt1" /> <br/>
content: <input id="ta1" type="text" /> <br/>
<input type="button" value="Create" onclick="create()" /><hr/>
<gm:list id="myList" data="${app}/testCRUD">
 <gm:template>
  <div repeat="true">
     <gm:text ref="atom:title" /><br/>
     <gm:text ref="atom:content" />
     
<gm:editButtons text="false" />
<hr/>
  </div>
  </gm:template>
</gm:list>
<script>
function create()
{
  var title=new GPath("atom:title");
  var content=new GPath("atom:content");
 
  var feed = google.mashups.getObjectById('myList').getData();
  var entry=feed.createEntry();
  title.setValue(entry,document.getElementById("txt1").value);
  content.setValue(entry,document.getElementById("ta1").value);
  feed.addEntry(entry);
}
</script>
<a href="index1">index1</a>
</gm:page>
































